<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>我的用户中心</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/main.css">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/style_userCenter.css">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/dialog.css">
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/calendar/WdatePicker.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/dialog.js"></script>
		<script type="text/javascript">
	function AutoScroll(obj) {
		$(obj).find("ul:first").animate( {
			marginTop : "-25px"
		}, 500, function() {
			$(this).css( {
				marginTop : "0px"
			}).find("li:first").appendTo(this);
		});
	}
	$(document).ready(function() {
		setInterval('AutoScroll("#gonggao")', 3000);
	});
</script>
		<style>
.safe-info {
	margin-top: -1px;
	overflow: hidden;
}

.safe-info .item {
	border-top: 1px dashed #E1E1E1;
	clear: both;
	padding: 12px 0 12px 16px;
	vertical-align: middle;
}

.item {
	text-align: center;
}

li {
	list-style: none outside none;
}

.safe-info .state {
	width: 104px;
}

.safe-info div {
	float: left;
	line-height: 22px;
}

.safe-info .title,.safe-info .supply {
	text-align: left;
}

.safe-info .title {
	width: 110px;
}

.safe-info .supply {
	color: #666666;
	width: 354px;
}

.safe-info .operate {
	font-weight: 700;
	width: 80px;
}
</style>

	</head>
	<body>
		<div>
			<jsp:include page="nav.jsp">
				<jsp:param value="nav_account" name="nav" />
			</jsp:include>
		</div>
		<div class="realCer">
			<!--主体部分-->
			<div class="realMain clearfix mt10">
				<!--左侧菜单-->
				<div class="realLeft" id="meunLeft">
					<jsp:include page="leftMenu.jsp">
						<jsp:param value="con_nav_account" name="con_nav" />
					</jsp:include>
				</div>
				<!--中由-->
				<div class="realRight ml10">
					<div class="box">
						<div style="margin: 5 40; line-height: 30px">
							<p>
								用户名： &nbsp;&nbsp;
								<s:property value="user.username" />
								<br />
								上次登录时间：
								<huoyun:dateFormat dateFormat="yyyy-MM-dd HH:mm:ss"
									date="${user.lastLoginTime}" />
							</p>
						</div>
						<div>
							<ul class="safe-info">
								<li class="item identity">
									<div class="state">
										<span class="alert"> <s:if test="user.checkRealname==0">未完成</s:if>
											<s:else>认证通过</s:else> </span>
									</div>
									<div class="title">
										<em>实名认证</em>
									</div>
									<div class="supply">
										用于提升账号的安全性和信任级别。认证后的有卖家记录的账号不能修改认证信息。
									</div>
									<div class="operate">						
										<s:if test="user.checkRealname==0">
											<a href="<s:url action="preAuthName" namespace="/auth">">认证</a>
										</s:if> 
										<s:else>已认证</s:else>			
									</div>
								</li>
								<li class="item identity">
									<div class="state">
										<span class="alert"> <s:if test="user.checkEmail==0">未完成</s:if>
											<s:else>认证通过</s:else> </span>
									</div>
									<div class="title">
										<em>邮箱认证</em>
									</div>
									<div class="supply">
										邮箱认证后，可使用邮箱直接登录，邮箱找回密码，接收各类重要提醒
									</div>
									<div class="operate">		
										<s:if test="user.checkEmail==0">
											<a href="<s:url action="preAuthEmail" namespace="/auth"></s:url>">认证</a>
										</s:if>
										 <s:else>已认证</s:else>
										
									</div>
								</li>
								<li class="item identity">
									<div class="state">
										<span class="alert"> <s:if
												test="user.checkBankAccount==0">未完成</s:if> <s:else>认证通过</s:else>
										</span>
									</div>
									<div class="title">
										<em>银行卡认证</em>
									</div>
									<div class="supply">
										通过银行卡认证才能将余额提现
									</div>
									<div class="operate">

										<s:if test="user.checkBankAccount==0">
											<a href="#">认证</a>
										</s:if>
										<s:else>已认证</s:else>

									</div>
								</li>
								<li class="item identity">
									<div class="state">
										<span class="alert"> <s:if
												test="user.checkMobilePhone==0">未完成</s:if> <s:else>认证通过</s:else>
										</span>
									</div>
									<div class="title">
										<em>手机认证</em>
									</div>
									<div class="supply">
										手机认证后，可使用手机登录、手机找回密码、接收各类重要提醒
									</div>
									<div class="operate">
										<s:if test="user.checkMobilePhone==0">
											<a
												href="<s:url action="preAuthPhone" namespace="/auth"></s:url>">认证</a>
										</s:if>
										<s:else>已认证</s:else>
										
									</div>
								</li>
							</ul>
						</div>
					</div>
					<!--中由-->

				</div>
				<div>
					<jsp:include page="/footer.jsp"></jsp:include>
				</div>
	</body>
</html>
